package com.greyu.ysj.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class CbtCreateCoin implements Serializable {
    /**
     * 币ID
     */
    private Integer coinId;

    /**
     * 币的英文名称
     */
    private String coinEnglishName;

    /**
     * 币的简称
     */
    private String coinSymbol;

    /**
     * 币头像url
     */
    private String coinUrl;

    /**
     * 币的中文名称
     */
    private String coinChineseName;

    /**
     * 官方网站
     */
    private String officialWebsite;

    /**
     * 上线交易所
     */
    private String onlineExchange;

    /**
     * 审核状态 0 代表审核失败，1 代表审核成功，2 代表正在审核
     */
    private Integer reviewFlag;
    
    /**
     * 
     */
    private CbtBallot cbtBallot;
    
    public CbtBallot getCbtBallot() {
		return cbtBallot;
	}

	public void setCbtBallot(CbtBallot cbtBallot) {
		this.cbtBallot = cbtBallot;
	}

	private static final long serialVersionUID = 1L;

    public Integer getCoinId() {
        return coinId;
    }

    public void setCoinId(Integer coinId) {
        this.coinId = coinId;
    }

    public String getCoinEnglishName() {
        return coinEnglishName;
    }

    public void setCoinEnglishName(String coinEnglishName) {
        this.coinEnglishName = coinEnglishName;
    }

    public String getCoinSymbol() {
        return coinSymbol;
    }

    public void setCoinSymbol(String coinSymbol) {
        this.coinSymbol = coinSymbol;
    }

    public String getCoinUrl() {
        return coinUrl;
    }

    public void setCoinUrl(String coinUrl) {
        this.coinUrl = coinUrl;
    }

    public String getCoinChineseName() {
        return coinChineseName;
    }

    public void setCoinChineseName(String coinChineseName) {
        this.coinChineseName = coinChineseName;
    }

    public String getOfficialWebsite() {
        return officialWebsite;
    }

    public void setOfficialWebsite(String officialWebsite) {
        this.officialWebsite = officialWebsite;
    }

    public String getOnlineExchange() {
        return onlineExchange;
    }

    public void setOnlineExchange(String onlineExchange) {
        this.onlineExchange = onlineExchange;
    }

    public Integer getReviewFlag() {
        return reviewFlag;
    }

    public void setReviewFlag(Integer reviewFlag) {
        this.reviewFlag = reviewFlag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CbtCreateCoin other = (CbtCreateCoin) that;
        return (this.getCoinId() == null ? other.getCoinId() == null : this.getCoinId().equals(other.getCoinId()))
            && (this.getCoinEnglishName() == null ? other.getCoinEnglishName() == null : this.getCoinEnglishName().equals(other.getCoinEnglishName()))
            && (this.getCoinSymbol() == null ? other.getCoinSymbol() == null : this.getCoinSymbol().equals(other.getCoinSymbol()))
            && (this.getCoinUrl() == null ? other.getCoinUrl() == null : this.getCoinUrl().equals(other.getCoinUrl()))
            && (this.getCoinChineseName() == null ? other.getCoinChineseName() == null : this.getCoinChineseName().equals(other.getCoinChineseName()))
            && (this.getOfficialWebsite() == null ? other.getOfficialWebsite() == null : this.getOfficialWebsite().equals(other.getOfficialWebsite()))
            && (this.getOnlineExchange() == null ? other.getOnlineExchange() == null : this.getOnlineExchange().equals(other.getOnlineExchange()))
            && (this.getReviewFlag() == null ? other.getReviewFlag() == null : this.getReviewFlag().equals(other.getReviewFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCoinId() == null) ? 0 : getCoinId().hashCode());
        result = prime * result + ((getCoinEnglishName() == null) ? 0 : getCoinEnglishName().hashCode());
        result = prime * result + ((getCoinSymbol() == null) ? 0 : getCoinSymbol().hashCode());
        result = prime * result + ((getCoinUrl() == null) ? 0 : getCoinUrl().hashCode());
        result = prime * result + ((getCoinChineseName() == null) ? 0 : getCoinChineseName().hashCode());
        result = prime * result + ((getOfficialWebsite() == null) ? 0 : getOfficialWebsite().hashCode());
        result = prime * result + ((getOnlineExchange() == null) ? 0 : getOnlineExchange().hashCode());
        result = prime * result + ((getReviewFlag() == null) ? 0 : getReviewFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", coinId=").append(coinId);
        sb.append(", coinEnglishName=").append(coinEnglishName);
        sb.append(", coinSymbol=").append(coinSymbol);
        sb.append(", coinUrl=").append(coinUrl);
        sb.append(", coinChineseName=").append(coinChineseName);
        sb.append(", officialWebsite=").append(officialWebsite);
        sb.append(", onlineExchange=").append(onlineExchange);
        sb.append(", reviewFlag=").append(reviewFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}